Optimal. Leaf size=134 \[ \frac {\, _2F_1\left (2,\frac {1}{2} (1+n p);\frac {1}{2} (3+n p);-\tan ^2(e+f x)\right ) \tan (e+f x) \left (c (d \tan (e+f x))^p\right )^n}{a f (1+n p)}-\frac {i \, _2F_1\left (2,\frac {1}{2} (2+n p);\frac {1}{2} (4+n p);-\tan ^2(e+f x)\right ) \tan ^2(e+f x) \left (c (d \tan (e+f x))^p\right )^n}{a f (2+n p)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.15, antiderivative size = 134, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 5, integrand size = 30, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {1970, 862, 83,
74, 371} \begin {gather*} \frac {\tan (e+f x) \, _2F_1\left (2,\frac {1}{2} (n p+1);\frac {1}{2} (n p+3);-\tan ^2(e+f x)\right ) \left (c (d \tan (e+f x))^p\right )^n}{a f (n p+1)}-\frac {i \tan ^2(e+f x) \, _2F_1\left (2,\frac {1}{2} (n p+2);\frac {1}{2} (n p+4);-\tan ^2(e+f x)\right ) \left (c (d \tan (e+f x))^p\right )^n}{a f (n p+2)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 74
Rule 83
Rule 371
Rule 862
Rule 1970
Rubi steps
\begin {align*} \int \frac {\left (c (d \tan (e+f x))^p\right )^n}{a+i a \tan (e+f x)} \, dx &=\frac {\text {Subst}\left (\int \frac {\left (c (d x)^p\right )^n}{(a+i a x) \left (1+x^2\right )} \, dx,x,\tan (e+f x)\right )}{f}\\ &=\frac {\left ((d \tan (e+f x))^{-n p} \left (c (d \tan (e+f x))^p\right )^n\right ) \text {Subst}\left (\int \frac {(d x)^{n p}}{(a+i a x) \left (1+x^2\right )} \, dx,x,\tan (e+f x)\right )}{f}\\ &=\frac {\left ((d \tan (e+f x))^{-n p} \left (c (d \tan (e+f x))^p\right )^n\right ) \text {Subst}\left (\int \frac {(d x)^{n p}}{\left (\frac {1}{a}-\frac {i x}{a}\right ) (a+i a x)^2} \, dx,x,\tan (e+f x)\right )}{f}\\ &=\frac {\left ((d \tan (e+f x))^{-n p} \left (c (d \tan (e+f x))^p\right )^n\right ) \text {Subst}\left (\int \frac {(d x)^{n p}}{\left (\frac {1}{a}-\frac {i x}{a}\right )^2 (a+i a x)^2} \, dx,x,\tan (e+f x)\right )}{a f}-\frac {\left (i (d \tan (e+f x))^{-n p} \left (c (d \tan (e+f x))^p\right )^n\right ) \text {Subst}\left (\int \frac {(d x)^{1+n p}}{\left (\frac {1}{a}-\frac {i x}{a}\right )^2 (a+i a x)^2} \, dx,x,\tan (e+f x)\right )}{a d f}\\ &=\frac {\left ((d \tan (e+f x))^{-n p} \left (c (d \tan (e+f x))^p\right )^n\right ) \text {Subst}\left (\int \frac {(d x)^{n p}}{\left (1+x^2\right )^2} \, dx,x,\tan (e+f x)\right )}{a f}-\frac {\left (i (d \tan (e+f x))^{-n p} \left (c (d \tan (e+f x))^p\right )^n\right ) \text {Subst}\left (\int \frac {(d x)^{1+n p}}{\left (1+x^2\right )^2} \, dx,x,\tan (e+f x)\right )}{a d f}\\ &=\frac {\, _2F_1\left (2,\frac {1}{2} (1+n p);\frac {1}{2} (3+n p);-\tan ^2(e+f x)\right ) \tan (e+f x) \left (c (d \tan (e+f x))^p\right )^n}{a f (1+n p)}-\frac {i \, _2F_1\left (2,\frac {1}{2} (2+n p);\frac {1}{2} (4+n p);-\tan ^2(e+f x)\right ) \tan ^2(e+f x) \left (c (d \tan (e+f x))^p\right )^n}{a f (2+n p)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [F]
time = 18.97, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (c (d \tan (e+f x))^p\right )^n}{a+i a \tan (e+f x)} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.19, size = 0, normalized size = 0.00 \[\int \frac {\left (c \left (d \tan \left (f x +e \right )\right )^{p}\right )^{n}}{a +i a \tan \left (f x +e \right )}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: RuntimeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} - \frac {i \int \frac {\left (c \left (d \tan {\left (e + f x \right )}\right )^{p}\right )^{n}}{\tan {\left (e + f x \right )} - i}\, dx}{a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\left (c\,{\left (d\,\mathrm {tan}\left (e+f\,x\right )\right )}^p\right )}^n}{a+a\,\mathrm {tan}\left (e+f\,x\right )\,1{}\mathrm {i}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________